Forensics

Flag in Fame

The SOC team discovered a suspiciously large log file after a recent breach. When they opened it, they found an enormous block of encoded text instead of typical logs.

Flag in Fame

The SOC team discovered a suspiciously large log file after a recent breach. When they opened it, they found an enormous block of encoded text instead of typical logs. Could there be something hidden within?

Information Given

Description

The SOC team discovered a suspiciously large log file after a recent breach. When they opened it, they found an enormous block of encoded text instead of typical logs. Could there be something hidden within? Your mission is to inspect the resulting file and reveal the real purpose of it. The team is relying on your skills to uncover any concealed information within this unusual log.

Download the encoded data here:Logs Data. Be prepared—the file is large, and examining it thoroughly is crucial.

Hints

Use base64 to decode the data and generate the image file.

Log File Analysis

Key Findings:

  • • File size: 398,053 bytes
  • • Content appeared to be base64 encoded data
  • • Started with iVBORw0KGgoAAAANSUhEUgAAA4AAAASACAIAAAAh8bSOAAEAAElEQVR4nOz919MsyZ...
  • • The iVBORw0KGgo prefix is a clear indicator of a PNG image file header in base64

Decoding Process

Base64 Decoding

Following the hint, I decoded the base64 data to generate an image file:

base64 -d -i "logs (2).txt" -o decoded_image.png

Verification

I verified the successful creation of the image file:

ls -la *.png
# Successfully created decoded_image.png
file decoded_image.png
# File type confirmed as PNG image
# File size: 298,704 bytes

Decoded Image

Decoded image showing the flag

The Flag

The hex in the image:

7069636f4354467b666f72656e736963735f616e616c797369735f616d617a696e675f63373564643038657d

Which translated is:

picoCTF{'{'}forensics_analysis_is_amazing_c75dd08e}